<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%task}}".
 *
 * @property integer $id
 * @property string $title
 * @property string $content
 * @property string $remark
 * @property integer $create_time
 * @property integer $update_time
 * @property integer $create_uid
 * @property integer $update_uid
 * @property string $member
 * @property string $revel_id
 * @property integer $catelog
 */
class Task extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%task}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['content', 'remark'], 'string'],
            [['create_time', 'update_time', 'create_uid', 'update_uid', 'catelog'], 'integer'],
            [['title'], 'string', 'max' => 255],
            [['member', 'revel_id'], 'string', 'max' => 60],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => '任务id',
            'title' => '标题 ',
            'content' => '内容',
            'remark' => '备注',
            'create_time' => '创建时间',
            'update_time' => '更新时间',
            'create_uid' => '创建人',
            'update_uid' => '更新人',
            'member' => '成员id（用逗号连接）',
            'revel_id' => '级别id',
            'catelog' => 'Catelog',
        ];
    }
}
